<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
{% for i in pagex %}
    <tr>
        <td>{{ i.commodity_name }}</td>
        <td>{{ i.date_of_manufacture }}</td>
        <td>{{ i.type_of_merchandise }}</td>
        <td>{{ i.address }}</td>
        <td><a href="{% url 'id:addd' i.id %}">购买</a></td>
    </tr>
    {% endfor %}
</table>
</body>
</html>